package com.gem.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class Commodity {
    private Integer id;
    private String name;
    private String pic;
    private Double price;
    //库存
    private Integer repertory;
    private String type;

    //一对多关系  一个商品对多个订单详情
    private List<OrderDetails> orderDetails;
}
